import { $t } from '@vben/locales';
/**
 *
 * @author Buke
 * @param arr 处理的国际数组
 * @param key 本地对应的key组
 */
export const langHandle = (arr: any[], key: any, keys = ['name']) => {
  arr.forEach((element: any) => {
    keys.forEach((itemkey) => {
      element[itemkey] = $t(`sys.${key}.${element[itemkey]}`);
    });
  });
};
